import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import styleImport, { VantResolve } from "vite-plugin-style-import";
import path from "path";

// https://vitejs.dev/config/
export default defineConfig({
	server: {
		host: true,
		port: 1010,
	},
	resolve: {
		alias: [
			{
				find: /@\//,
				replacement: path.join(__dirname, "./src/"),
			},
		],
	},
	plugins: [
		vue(),
		styleImport({
			resolves: [VantResolve()],
		}),
	],
});
